package com.gruopbuying.agent;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableEurekaClient
@EnableSwagger2
@EnableScheduling
@EnableFeignClients
@MapperScan("com.gruopbuying.agent.dao")
@SpringBootApplication(scanBasePackages={"com.gruopbuying.agent"})
@EnableTransactionManagement
@EnableApolloConfig
//@PropertySource(value = {"file:yml/dev/application.yml","file:yml/text/application.yml"})
        public class AgentApplication {
            public static void main(String[] args) {
                SpringApplication.run(AgentApplication.class, args);
    }
}

